package com.light.common;

import com.jfinal.config.Routes;
import com.light.modules.admin.busi.controller.ClawBookUrlController;
import com.light.modules.admin.busi.controller.StockHistoryLogController;
import com.light.modules.admin.system.controller.*;

/**
 * 管理后台路由控制器
 * @author:zhangdb
 * @date:2017/12/08
 */
public class AdminRoutes extends Routes {
    @Override
    public void config() {
        add("/admin/login", LoginController.class, "/admin/system/login");
        add("/admin/zcurd", ZcurdController.class, "/admin/system/zcurd");
        add("/admin/zcurdHead", ZcurdHeadController.class, "/admin/system");
        add("/admin/menu", MenuController.class, "/admin/system/menu");
        add("/admin/main", MainController.class, "/admin");
        add("/admin/role", RoleController.class, "/admin/system/role");
        add("/admin/common", CommonController.class, "/admin/system/zcurd");
        add("/admin/oplog", SysOplogController.class, "/admin/system/sysOplog");
        add("/admin/user", SysUserController.class, "/admin/system/sysUser");
        add("/admin/task", TaskBaseController.class, "/admin/system/taskBase");
        add("/admin/test",TestController.class);

        add("/admin/stockHistoryLog", StockHistoryLogController.class, "/admin/busi/stockHistoryLog");
        add("/admin/clawBookUrl", ClawBookUrlController.class, "/admin/busi/clawBookUrl");
    }
}
